package java_class_work.week05;

import java.io.File;

public class FileOperator1 {
    public static void main(String[] args) {
        // 创建名为 iotest 的目录
        String path = "E:"+ File.separator+"Class"+ File.separator+"Java面向对象程序设计"+
                File.separator+"Java_20220624"+ File.separator+"src"+
                File.separator+"java_class_work"+ File.separator+"iotest";
        File file = new File(path);
        if(!file.isDirectory()){
            boolean b = file.mkdir();
            if(b) System.out.println("Directory create success！");
            else System.out.println("create defeat");
        }else System.out.println("不是目录");
    }
}
